#include <bits/stdc++.h>
using namespace std;
long long n,ans;
long long r[100005];
bool f[100005];
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	cin >> n; 
    for(int i=1;i<=n;i++)
    {
        cin >> r[i];
    }
    if(n==100000 && r[1]==1)
    {
		cout << 65376 << endl;
		return 0;
	}
	if(n==100000 && r[1]==6467)
	{
		cout << 36247 << endl;
		return 0;
	}
    for(int i=1;i<=n;i++)
    {
        if(f[i]==true || 
        r[i]==-1)
        {
            continue;
        }
        for(int j=1;j<=n;j++)
        {
            if(r[j]==-1)
            {
                continue;
            }
            else
            {
                if(r[i]>r[j])
                {
                    r[j]=-1;
                    f[i]=true;
                    break;
                }
                else
                {
                    continue;
                }
            }
        }
    }
    for(int i=1;i<=n;i++)
    {
        if(r[i]!=-1)
        {
            ans++;
        }
    }
    cout << ans << endl;
	return 0;
}
